package com.sbck.cs3.MyClass;

import android.os.Build;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class DeviceLog {

    public DeviceLog(String msg, int color)
    {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            this.time = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
        }
        this.msg = msg;
        this.color = color;
    }
        public String time;
        public String msg;

        public int color;
}
